<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en" class="no-js">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
    <include file="Inc/basic_css"/>
    <include file="Inc/basic_js"/>
    <import type="js" basepath="__JS__" file="AjaxFileUpload,imgpre,admin" />
    <import type="js" basepath="__PLUGIN__" file="ueditor.ueditor#config,ueditor.ueditor#all#min,ueditor.lang.zh-cn.zh-cn" />
    <link rel="stylesheet" type="text/css" href="__PLUGIN__/bootstrap-datepicker/css/datepicker.css" />
    <script type="text/javascript" src="__PLUGIN__/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
    <style type="text/css">
        *{
            margin:0px;
            padding:0px;
        }
        body, button, input, select, textarea {
            font: 12px/16px Verdana, Helvetica, Arial, sans-serif;
        }
        #container {
            width:600px;
            height:600px;
            float: left;
        }
    </style>

</head>
<!-- END HEAD -->
<!-- BEGIN BODY -->
<body class="page-header-fixed" onload="init();">
<!-- BEGIN HEADER -->
<include file="Inc/head"/>
<!-- END HEADER -->
<div class="clearfix"></div>
<!-- BEGIN CONTAINER -->
<div class="page-container">
    <!-- BEGIN SIDEBAR -->
    <include file="Inc/left"/>
    <!-- END SIDEBAR -->
    <!-- BEGIN PAGE -->
    <div class="page-content">

        <!-- BEGIN STYLE CUSTOMIZER -->
        <include file="Inc/theme"/>
        <!-- END BEGIN STYLE CUSTOMIZER -->
        <!-- BEGIN PAGE HEADER-->
        <div class="row">
            <div class="col-md-12">
                <!-- BEGIN PAGE TITLE & BREADCRUMB-->
                <h3 class="page-title">
                    {$cfg.title}<if condition="$dataInfo.id gt 0 ">修改信息<else />添加信息</if> <small></small>
                </h3>
                <ul class="page-breadcrumb breadcrumb">
                    <li><i class="fa fa-home"></i><a href="{:U('Index/index')}">首页</a> <i class="fa fa-angle-right"></i></li>
                    <li><a href="#">车型管理</a><i class="fa fa-angle-right"></i></li>
                    <li><a href="#">{$cfg.title}<if condition="$dataInfo.id gt 0 ">修改信息<else />添加信息</if></a><i class="fa fa-angle-right"></i></li>
                </ul>					<!-- END PAGE TITLE & BREADCRUMB-->
            </div>
        </div>
        <!-- END PAGE HEADER-->
        <!-- BEGIN PAGE CONTENT-->
        <div class="row">
            <div class="col-md-12">
                <!-- BEGIN EXAMPLE TABLE PORTLET-->
                <div class="portlet">
                    <!--
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="fa fa-reorder"></i>站点信息
                        </div>
                    </div>-->
                    <form class="form-horizontal" action="{:U('Cartype/save')}"  id="submit_form" method="post">
                        <input type="hidden" name="id" value="{$dataInfo.id}" />
                        <input type="hidden" name="back_url" value="{$back_url}" />
                        <input type="hidden" name="lang" value="{$lang}" />
                        
                        <input type="hidden" name="lng" id="lng" value="{$dataInfo.lng}" />
                        <input type="hidden" name="lat" id="lat" value="{$dataInfo.lat}" />
                        <div class="portlet-body form">
                            <!-- BEGIN FORM-->
                            <div class="form-body">
                                <div class="form-group">
                                    <label class="col-md-3 control-label">景点名称：</label>
                                    <div class="col-md-4">
                                        <input type="text" class="form-control" name="title" id="title" value="{$dataInfo["title"]}"/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-md-3 control-label">起步价(￥)：</label>
                                    <div class="col-md-4">
                                        <input type="text" class="form-control" name="flag_fall_price" id="flag_fall_price" value="{$dataInfo["flag_fall_price"]}"/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-md-3 control-label">超过10KM，每公里收费(￥)：</label>
                                    <div class="col-md-4">
                                        <input type="text" class="form-control" name="over_charge" id="over_charge" value="{$dataInfo["over_charge"]}"/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-md-3 control-label">标签(竖线 | 分割)：</label>
                                    <div class="col-md-4">
                                        <input type="text" class="form-control" name="over_charge" id="over_charge" value="{$dataInfo["tag"]}"/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-md-3 control-label">图片：</label>
                                    <div class="col-md-4">
                                        <input type="hidden" name="pic_path" id="pic_path" size="50" value="{$dataInfo.pic_path}" />
                                        <script type="text/javascript" src="__JS__/AjaxFileUpload.js.php?fype=pic&UpFile={:urlencode('__UPLOAD__')}&tourl={:urlencode(U('Upload/upOne'))}&url=__ROOT__"></script>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-actions top fluid ">
                            <div class="col-md-offset-3 col-md-9">
                                <button class="btn green" type="submit">提交</button>
                                <button class="btn default" type="button" id="cancel" onclick="history.go(-1)">返回</button>
                            </div>
                        </div>
                    </form>
                    <!-- END FORM-->



                </div>
            </div>
            <!-- END EXAMPLE TABLE PORTLET-->
        </div>
    </div>
    <!-- END PAGE CONTENT -->
</div>
<!-- END CONTAINER -->
<!-- BEGIN FOOTER -->
<include file="Inc/foot"/>
<!-- END FOOTER -->
<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->

<!-- END CORE PLUGINS -->
<!-- BEGIN PAGE LEVEL SCRIPTS -->
<script src="__JS__/app.js" type="text/javascript"></script>
<script src="__JS__/form-components.js"></script>
<script src="__JS__/controllers/new/edit.js" type="text/javascript"></script>

<!-- END PAGE LEVEL SCRIPTS -->
<script>
    jQuery(document).ready(function() {
        App.init(); // initlayout and core plugins
        NewValidation.init();
        FormComponents.init();
    });
</script>
</body>
<!-- END BODY -->
</html>